package com.ruoyi.code.dialog

import android.app.Dialog
import android.os.Bundle
import androidx.fragment.app.DialogFragment

/**
 * @how_to_user
 *  val loadingDialog = LoadingDialog()
 *   loadingDialog.show(parentFragmentManager, "")
 */
class LoadingDialog(private val text: String? = "加载中...") : DialogFragment() {

    override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
        isCancelable = false
        return BubbleDialog(requireContext(), title = text)
    }

}
